// import React from 'react'
import { NavBar } from 'antd-mobile'
import { useNavigate, useParams } from 'react-router-dom'
import { useEffect, useState } from 'react'
import { loadIllsDescAPI } from '../Microsurgery/forums'


function WzDesc() {
  const nav = useNavigate()
  const params = useParams()
  const [illDesc, setIllDesc] = useState({})


  useEffect(() => {
    loadIllsDescAPI(params.id).then((res) => {
      console.log(res)
      setIllDesc(res.data)
    })
  }, [])
  // 点击返回
  const back = () => nav("/WzDetail")

  return (
    <>
      <NavBar onBack={back}>wz项目详情</NavBar>
      {/* {illDesc.map(item => { */}
      <div dangerouslySetInnerHTML={{ __html: illDesc.content }}></div>
      {/* })} */}
    </>


  )
}

export default WzDesc